package com.boyin.order.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author sh-sunb6
 * @description
 * @date 2019-06-05 14:08
 */
@RestController
@RequestMapping("/order")
public class OrderController {

    @Value("${server.port}")
    private String port;

    @GetMapping("getOrderPort")
    public String getPort() {

        System.out.println("sout order-service port:" + port);
        return "order-service port：" + port;
    }

}
